package com.example.demo.mapper;
import com.example.demo.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    public List<ArticleInfo> getMyList(@Param("uid") Integer uid);

    public  ArticleInfo getDetail(@Param("aid")Integer aid);

    public  int update(@Param("aid") Integer aid,@Param("title")String title,@Param("content")String content,@Param("uid") Integer uid);

    public  int del(@Param("id") Integer id);

    public  List<ArticleInfo> getList2(@Param("psize") Integer psize,@Param("offset") Integer offset);

    public  int gettotalpage();

    public  int gett(@Param("uid") Integer uid);

    public int writeblog(@Param("uid")  Integer uid, @Param("title") String title, @Param("content") String content);
}
